Hello, |
Re: Issue with finding a keyword including more than one colon? Maybe using 'contains' rather than 'keyword' would better suit your need. |
Re: Issue with finding a keyword including more than one colon? |
Re: Issue with finding a keyword including more than one colon? Try:
Buffer BBuffer = create;
const string c_szTestString = "http://server0815.auto.wan.com:1001/tbd/tbdtbdtbd/tbd";
const string c_szKeywordNotFound = "http://server0815.auto.wan.com:1001/";
const string c_szKeywordFound = "http://server0815.auto.wan.com";
int iOffset = 0;
BBuffer = c_szTestString;
iOffset = contains(BBuffer, c_szKeywordFound, 0);
if(iOffset == -1)
{ print("Keyword not found!\n");
}else
{ print("Keyword found!\n");
}
iOffset = contains(BBuffer, c_szKeywordNotFound, 0);
if(iOffset == -1)
{ print("Keyword not found!\n");
}else
{ print("Keyword found!\n");
}
|